Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.user.center.urlservice--urlpatterns

This contribution is part of XML component org.nuxeo.ecm.user.center.urlservice inside nuxeo-user-center-9.10.jar /OSGI-INF/urlservice-contrib.xml

Extension Point

Extension point urlpatterns of component URLService.

Contributed Items

  • <urlPattern enabled="true" name="home">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>docpathhome</codecName>
          <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
          <documentViewBindingApplies>
            #{mainTabsActions.isOnMainTab('home')}
          </documentViewBindingApplies>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>
            #{restHelper.getNewDocumentView(null)}
          </newDocumentViewBinding>
          <bindings>
            <binding callGetter="false" name="tabId">
              #{webActions.currentTabId}
            </binding>
            <binding callGetter="false" name="subTabId">
              #{webActions.currentSubTabId}
            </binding>
            <binding name="tabIds">#{webActions.currentTabIds}</binding>
            <binding callGetter="false" name="language">
              #{restHelper.localeString}
            </binding>
          </bindings>
        </urlPattern>
  • <urlPattern enabled="true" name="user">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>user</codecName>
          <actionBinding>
            #{restHelper.initContextFromRestRequest}
          </actionBinding>
          <bindings>
            <binding callGetter="false" name="tabIds">
              #{webActions.currentTabIds}
            </binding>
            <binding callGetter="false" name="username">
              #{userManagementActions.selectedUserName}
            </binding>
            <binding callGetter="false" name="showUser">
              #{userManagementActions.showUser}
            </binding>
          </bindings>
        </urlPattern>
  • <urlPattern enabled="true" name="group">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>group</codecName>
          <actionBinding>
            #{restHelper.initContextFromRestRequest}
          </actionBinding>
          <bindings>
            <binding callGetter="false" name="tabIds">
              #{webActions.currentTabIds}
            </binding>
            <binding callGetter="false" name="groupname">
              #{groupManagementActions.selectedGroupName}
            </binding>
            <binding callGetter="false" name="showGroup">
              #{groupManagementActions.showGroup}
            </binding>
          </bindings>
        </urlPattern>

XML Source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">

    <urlPattern enabled="true" name="home">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpathhome</codecName>
      <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
      <documentViewBindingApplies>
        #{mainTabsActions.isOnMainTab('home')}
      </documentViewBindingApplies>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.getNewDocumentView(null)}
      </newDocumentViewBinding>
      <bindings>
        <binding callGetter="false" name="tabId">
          #{webActions.currentTabId}
        </binding>
        <binding callGetter="false" name="subTabId">
          #{webActions.currentSubTabId}
        </binding>
        <binding name="tabIds">#{webActions.currentTabIds}</binding>
        <binding callGetter="false" name="language">
          #{restHelper.localeString}
        </binding>
      </bindings>
    </urlPattern>

    <urlPattern enabled="true" name="user">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>user</codecName>
      <actionBinding>
        #{restHelper.initContextFromRestRequest}
      </actionBinding>
      <bindings>
        <binding callGetter="false" name="tabIds">
          #{webActions.currentTabIds}
        </binding>
        <binding callGetter="false" name="username">
          #{userManagementActions.selectedUserName}
        </binding>
        <binding callGetter="false" name="showUser">
          #{userManagementActions.showUser}
        </binding>
      </bindings>
    </urlPattern>

    <urlPattern enabled="true" name="group">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>group</codecName>
      <actionBinding>
        #{restHelper.initContextFromRestRequest}
      </actionBinding>
      <bindings>
        <binding callGetter="false" name="tabIds">
          #{webActions.currentTabIds}
        </binding>
        <binding callGetter="false" name="groupname">
          #{groupManagementActions.selectedGroupName}
        </binding>
        <binding callGetter="false" name="showGroup">
          #{groupManagementActions.showGroup}
        </binding>
      </bindings>
    </urlPattern>

  </extension>